Model calculation of the static macroscopic dielectric function and the optical frequency of diamond