Electronic structure of a quantum ring in a lateral electric field