Separability of mixed states: necessary and sufficient conditions