The Spectral Representation Method: A framework for simulation of stochastic processes, fields, and waves