Monitoring students' self-regulation as a basis for an early warning system