Spur gear for machine tools