A method of covering the surface of an optical element made of an ionic crystal with a continuous protective layer, the continuous layer and its application