Modelling and testing techniques for gearbox analysis and optimization