PCA stability and choice of dimensionality