We report on the structural and optical characterization of nominally lattice-matched GalnAs/GalnAsP multiple quantum well (MOW) structures grown on (100) InP substrates by metalorganic chemical vapour deposition (MOCVO) which undergo a 'blue shift' in photoluminescence upon thermal annealing. Electron microscope and magneto-optical analyses show that the shifts are principally due to layer interdiffusion, which results in a change in composition of the well centres These compositional variations are quantitatively measured by high-resolution analytical electron microscopy. This analysis demonstrates that the diffusion of the group V elements in the undoped Maws is faster than that of the group ill elements, resulting in the incorporation of excess coherency strain in the material. Analysis of a number of samples grown on a variety of substrates shows that the wavelength shift is particularly large when the substrates are S doped, although the substrate dopant does not participate directly in the diffusion mechanism. We attribute this behaviour to the typically low dislocation density of S-doped substrates. We report, for the first time, a direct measurement of the correlation between the spatial variation in the magnitude of the blue shift and the presence of dislocations in the MOWS. On the other hand, the incorporation of Zn as a dopant in the MOW region reduces the extent to which the blue shift,,occurs. A model is proposed which explains how the presence of dislocations, as well as the substrate and MOW doping, could indirectly influence the extent of the layet interdiffusion.