use generalized density matrix to do embedding basis construction, works faster