Stochastic resonance in a bistable geodynamo model