Three-dimensional numerical modelling of the drained/undrained transition for frequency-dependent elastic moduli and attenuation