Title: A Modular Framework for Optimizing Grid Integration of Mobile and Stationary Energy Storage in Smart Grids