South Korea elects first female president