India’s quest for energy is reshaping its diplomacy