Adaptive range-selective gain control in radar system