The ground-state structure and physical properties of RuC: first-principles calculations