If a gift is made for a specific purpose which is either expressed or is secretly understood and the purpose is illegal or from some other cause fails or cannot be accomplished, the donee shall hold the object of the gift as trustee for the donor or his next of kin.