Liquid-crystalline state of the wall-adjacent layers of some polar liquids