Chemistry and distribution of daughter species in the circumstellar envelopes of O-rich AGB stars