Probing the Cosmic Star Formation History by the Brightness Distribution of Gamma-Ray Bursts