Resonant x-ray scattering study of charge superstructures in layered La2-xCaxCoO4 +/-delta (0.4 <= x <= 0.7) and La1.5Sr0.5CoO4 compounds