Structural and magnetic phase transitions in Ni-Mn-Ga ferromagnetic shape-memory crystals