Nanogrids: A smart way to integrate public transportation electric vehicles into smart grids