India court extends activist Ravi's detention over farm protest