The dielectric function and the loss function of bound electrons