Introducing economically viable smart grids within municipalities