The influence of the ion bombardment on the optical properties of TiNx and ZrNx coatings