Scientists have transformed the humble spinach plant into a bomb detector.