X-ray investigations of epitaxial thin films grown on substrates with MgO and buffer layers for the fabrication of biepitaxial Josephson junctions