Dynamic behaviour and optimisation of frames for road and mountain bikes