Measuring and teaching problem-solving practices in digital learning environments