Analysis and design of shrouded turbines