Hierarchical microstructures to overcome the conflict between strength and toughness of hard coatings: TiN/Ni as a model system