Causal analysis of education and birth inequalities through a latent class structural equation model