What are the various applications of AI in robotics? What is AIML and why is it used? What is a pattern and template in AIML? What is PyAIML and what are its functions?