Family background and child health: the role of socioeconomic status and skills