Twisting null geodesic congruences and the Einstein–Maxwell equations