Size dependence of the energy relaxation in silver nanoparticles embedded in dielectric matrices