Resonant interaction between laser and electrons undergoing betatron oscillations in the bubble regime