Added test for PCA and improved `pca_transformation`
An example 'principal_component_analysis' was added to specifically test this functionality. It uses the analytical model.
Fixed two if-calls in pca_transformation
to match older code and the content of the function, and increased its adaptivity to the choice of number of pca-components.