How long did a student have to study law, in early Islamic law graduate schools, in order to graduate?