Flux-charge description of circuits with non-volatile switching memristor devices