Self-perceived mental health and perceived discrimination in family physicians and residents: a comparative study between men and women