RIL, BP to invest Rs 40,000 crore in energy projects in India