Solving bundle block adjustment by generalized anisotropic Procrustes analysis