Study of structural phase transition in MgSe