Loss Analysis of Unsteady Turbomachinery Flows Based on the Mechanical Work Potential