adding function for calculating miniBZ refinement input