A Numerical Approach for the Evaluation of the Effects of Air Release and Vapour Cavitation on Effective Flow Rate of Axial Piston Machines