Man charged in Amherst animal cruelty case sentenced to 2 ye