Entanglement properties of superconducting qubits coupled to a semi-infinite transmission line