On the radio occultation method for studying planetary atmospheres