Molecular dynamics simulation of phase transitions and melting in MgSiO3 with the perovskite structure