An active railway power quality compensator for 2x25kV high-speed railway lines