Choosing the number of factors in factor analysis with incomplete data via a hierarchical Bayesian information criterion