A scaling law for impact force of a granular avalanche flowing past a wall