Detecting entanglement of states by entries of their density matrices