An integrated approach to implementing opportunity charging for electric buses