Raman scattering and luminescence in coal and graphite