NH man sentenced to prison for role in toddler’s death