Relation between entanglement measures and Bell inequalities for three qubits