Static and stationary solutions of the Einstein-Maxwell equations