Local nuclear and magnetic order in the two-dimensional spin glass Mn0.5Fe0.5PS3