Scientists use artificial intelligence to detect gravitational waves