Tuning colourimteric and fluorimetric gas sensors for carbon dioxide