GranFilm: a software for calculating thin-layer dielectric properties and Fresnel coefficients