The molecular envelopes of evolved planetary nebulae