On the gravitational field induced by static electromagnetic sources