Resonance Raman spectra of polyyne molecules C10H2 and C12H2 in solution