Fast method to compute off-axis magnetic fields for cylindrically symmetric systems of solenoids and current loops