Density functional study of x-ray Raman scattering from aromatic hydrocarbons and polyfluorene