Separation of variables on n‐dimensional Riemannian manifolds. I. The n‐sphere Sn and Euclidean n‐space Rn