Magnetoelectric behavior from cluster multipoles in square cupolas: Study of Sr(TiO)Cu4(PO4)4 in comparison with Ba and Pb isostructurals