Circumstellar C2, CN and CH+ in the optical spectra of post-AGB stars