Non-linear resonance in bouncing braneworld universes and initial conditions for inflation