Localized Gaussian wave packet methods for inelastic collisions involving anharmonic oscillators