Fault detection for polymer electrolyte membrane fuel cell stack by external magnetic field