Hausdorff dimension for level sets of upper and lower limits of generalized averages of binary digits