Sri Lanka win second Test by 164 runs as West Indies collapse