Stability of hydrogenated amorphous carbon thin films for application in electronic devices