Stochastic resonance in optical bistable systems: Amplification and generation of higher harmonics