Ab initio calculations on systems relevant for the chemistry of the atmosphere