A Framework for Learning Behavior Trees in Collaborative Robotic Applications