Resonant x-ray diffraction of the magnetoresistant perovskite Pr0.6Ca0.4MnO3