The estimation of b-value of the frequency-magnitude distribution and of its confidence intervals from binned magnitude data