Theory of the Stark effect