Pandey’s debut ODI ton helps India avoid whitewash