Low-frequency noise in Josephson junctions for superconducting qubits