Sir Martin Rees warns that robots could wipe out humanity