The optical properties of cermets from the theory of electrostatic resonances