Positioning of cobalt atoms in amorphous carbon films by pre-selecting the hydrogen concentration