Power spectra of thermal tidal and planetary waves in the near-Earth atmosphere and in the ionospheric D region at Kamchatka