Accuracy and consistency in discovering dimensionality by correlation constraint analysis and common factor analysis