how is average calculated in cricket