Career preferences and the work–family balance in medicine: gender differences among medical specialists