Three-dimensional simulation of quasiperiodic perturbations attributed to solar activity effects in the middle atmosphere