Entanglement dynamics in superconducting qubits affected by local bistable impurities