Force and position control of a hydraulic press