Shell corrections for finite depth potentials