How AI is Revolutionizing Cybersecurity: Applications and Techniques