General Failure Modes and Effects Analysis for Accelerator and Detector Magnet Design at JLab