Impact of magnetic clouds on the middle atmosphere and geomagnetic disturbances