Sociological theories of the middle level in applied research