Computing principal components via optimisation of elementary symmetric polynomials