Mental disorders and personality traits as determinants of impaired work functioning