India beat Afghanistan by innings and 262 runs