The role of artificial intelligence in cybersecurity