Thousands of Ukrainian soldiers surrender