Retarded field calculation of electron energy loss in inhomogeneous dielectrics | Synapse