The ideal regenerative Rankine cycle