Traditional hydropower plant revamping based on a variable-speed surface permanent-magnet generator