A method of design against vibration resonance of beams and shafts