Entropy Generation Rate for Profiled Endwall Design in Turbines