Quench levels and transient beam losses in LHC magnets