Synthesis and x-ray characterization of superconducting and related Ln2−xCexCuO4−y (Ln=Nd and Gd) compounds