Planning to Learn: A Novel Algorithm for Active Learning during Model-Based Planning