Former Thai Prime Minister Thaksin Shinawatra has been released from a Bangkok prison after serving eight months on a corruption-related charge