Proenza sentenced to 40 years in prison in child's death