Characterization of hard amorphous carbon films implanted with nitrogen ions