Man sentenced to 9-to-18 years in child sex charge