Ferromagnetic nodal-line metal in monolayer h -InC