A design optimization model for an alternating flow (AF) hydraulic pump based on first principles