Stabilisation of Ba2CuO2Cl2 with the K2NiF4 structure by chemical substitution