Precise expressions for random projections: Low-rank approximation and randomized Newton