Myanmar junta frees thousands of prisoners, including foreigners