Who awarded a teaching license in European schools?