Zero-noise extrapolation for quantum-gate error mitigation with identity insertions