Sri Lanka opt to bat in second Test vs India