Antireflective coatings with adjustable transmittance and high laser-induced damage threshold prepared by deposition of magnesium fluoride nanoparticles