Products of 3≦Z≦9 from long-lived intermediates in the reactions 336 MeV40Ar+Ag,154Sm and Au