Generalized quantum secret sharing