how tilak's imprisonment shaped his legacy