Monte Carlo renormalization-group study of the two-dimensional Glauber model