Explanation in history and philosophy