Time-dependent density functional theory study of absorption spectra of metallocenes