South Korea posts solid gain in August exports