An e cient and accurate algorithm for generating spatially-correlated random elds