An analysis and diagnosis method to detect mechanical stress in railway traction drive systems