Diacs and scribes of the 14th - 16th centuries: origins and social relations