With two BRICS members embroiled in wars, India’s diplomatic skills will be severely tested, as it cannot afford to irk Washington