Study of the tetragonal pnictide M4Pn2O (M= Ca, Sr, Ba and Pn= As, Sb, Bi): layered compounds related to the La2CuO4+x superconductor