X-ray diffraction and theoretical studies of the high-pressure structures and phase transitions in magnesium fluoride