Anaheim man sentenced to life in prison in ex-girlfriend’s slaying