The new semi-analytic code GalICS 2.0 – reproducing the galaxy stellar mass function and the Tully–Fisher relation simultaneously