Oxygen deficiency in the superconducting oxides (La1-xMx)2CuO4(M=Sr, Ba)