Added function aveMb2 for calculating the area-adjusted average.