Psychiatry as a specialization: influential factors and gender differences among medical students in a low- to middle-income country