Neutrino beam simulations of an extended target in T2K and neutrino interactions in BabyMIND