who invented the first gas powered motor?