Frequency spectrum of the geomagnetic field harmonic coefficients from dynamo simulations