A General Framework and Control Theoretic Approach for Adaptive Interactive Learning Environments