Formfactors for one- and two-nucleon transfer reactions induced by light and heavy ions