KL Rahul scored a half-century as India registered a comfortable seven-wicket win over West Indies in the second Test.