Efficient electricity systems under high penetration of renewable and distributed resources