when was the machine gun invented in ww1