The Bright Reverse Shock Emission in the Optical Afterglows of Gamma-Ray Bursts in a Stratified Medium