Domain loss enables evolution of novel functions in a gene superfamily, including snake 3-finger toxins