Vertical-structure effects on planetary microwave brightness temperature measurements: Applications to the lunar regolith