A Power Quality Compensation Device for Interacting AC-DC Railway Systems