Gender differences in structural and behavioral determinants of health: an analysis of the social production of health