Influence of rare-earth substitution on the structural, magnetic, optical and dielectric properties of ZnO nanoparticles