Optimum design and control of hydraulic systems driven by swash plate pumps using vibration based diagnosis