Scientists have revealed that an artificial intelligence has invented a molecule that glows, an achievement that would have taken nature 500 million years to create naturally.