South Carolina man sentenced to 23 years in prison for killing toddler son