Magnetic Bianchi type II string cosmological model in loop quantum cosmology