Determination of supersymmetric masses using kinematic fits at the LHC