Connection between the phenomenological and microscopic approaches in the theory of liquid crystals