Man sentenced for aggravated battery to a child