Violating Bell inequality by mixed spin- {1}/{2} states: necessary and sufficient condition