The protection system for the superconducting elements of the Large Hadron Collider at CERN