Measuring self-regulation in online and blended learning environments