Evolution of scalar and vector cosmological perturbations through a bounce in metric f(R) gravity in flat FLRW spacetime