The world will generate 50% of its electricity from wind and solar by 2050, helped by falling costs and the arrival of cheap batteries, Bloomberg New Energy Finance (BNEF) has projected.