Statistics for Grain boundaries as weak links: The case of MgB2 with reference to YNi2B2C