Structure and morphology of MgO/YBCO bilayers for biepitaxial junctions