Imperfect markets for power : competition and residual regulation in the electricity industry