Vibrational and magnetic behavior of transforming and nontransforming Ni-Mn-Ga alloys