Chemically and mechanically resistant carbon dioxide optrode based on a covalently immobilized pH indicator