Artificial Intelligence and Cybersecurity: Theory and Applications