Monte Carlo simulations of measured electron energy-loss spectra of diamond and graphite: Role of dielectric-response models