Sharjeel Imam gets bail in sedition case after 31 months