Psychosocial risk factors and perceived health of medical residents