Development and application of an electric vehicles life-cycle energy consumption and greenhouse gas emissions analysis model