The computation of the entropy generation rate for turbomachinery design applications: some theoretical remarks and practical examples