Minimal sample size in balanced ANOVA models of crossed, nested, and mixed classifications