Influence of competing bonds along the c-axis on the local distortion of the (CoO6) octahedron in K2NiF4-type oxides A′0.50La1.50Mg0.50Co0.50O4 (A′ = Ca, Sr and Ba)