A teacher who became fed up with students using their mobile phones to find answers and cheat on university exams came up with a devious way to catch them out - and failed the pupils who fell for it