Randomized algorithms for distributed computation of principal component analysis and singular value decomposition