Man sentenced to 18 years in death of infant