A general through-flow theory of fluid flow with subsonic or supersonic velocity in turbomachines of arbitrary hub and casing shapes