Analysis of Bell inequality violation in superconducting phase qubits