Associations between demographic and attitudinal variables and career choice of family medicine at exit from medical school