Benefits and challenges of smart grids