How electrical circuit breakers and GFCIs work