nuclear gradients with finite nucleus