Optical properties of metasurfaces infiltrated with liquid crystals