As scientists stand on the cusp of creating superintelligent machines, humans could be rendering themselves obsolete