Three US citizens imprisoned for years in China have been released and are returning to the United States, the White House says.