Influence of long-range interactions on charge ordering phenomena on a square lattice