Turning teacher written exams into valid and reliable computer-assisted testing tools