A semi-automatic computer-aided assessment framework for primary mathematics