Multifunctional and smart Er2O3–ZnO nanocomposites for electronic ceramic varistors and visible light degradation of wastewater treatment