Oil giant BP has projected a rapid growth of electric cars that is set to take a toll on oil consumption by 2040.