The preliminary design of axial pumps and turbines based on analytical solutions of the flow field