Extending Explanation-Based Learning by Generalizing the Structure of Explanations