Plasma dynamics in graphite and SWNT probed by inelastic electron and x-ray scattering