Text this: A Comprehensive Framework for Optimizing and Integrating Electric Bus Service with Smart Grids for Sustainable Public Transportation