Particle number projecting method for the description of pairing effects in metal clusters