SPM investigation of diamond-like carbon and carbon nitride films