Carbon thin films deposited on Si and PET: study of interface states