Comparison of Higgs boson mass and width determination of the LHC and a linear collider