Energy losses of charged particles moving parallel to the surface of an overlayer system