A criterion for entanglement in two two-level systems