Chemical and Electrochemical Stability of Nitrogen and Sulphur Doped Mesoporous Carbons