The win surpassed India's previous biggest Test victory margin and was set up by a dominant bowling performance that saw them take 14 Afghanistan wickets on the third day.