Unnikrishnan Potti granted bail, released from prison