Components of effective use of diagrams in math problem solving