Introducing Competition into Regulated Network Industries: from Hierarchies to Markets in Electricity