Cosmological perturbations on a magnetized Bianchi I background