Bubble rise in a Hele-Shaw cell: bridging the gap between viscous and inertial regimes