Man who killed ex-girlfriend gets 25 to 54 years in prison