Frequency-Dependent Monte Carlo Simulations of Phonon Transport in Nanostructures