Refraction of light on flat boundary of liquid crystals or anisotropic metamaterials