Weakly Stationary Random Fields, Invariant Subspaces and Applications