BP will slash oil production by 40% and pour billions into green energy