Particle number projection with effective forces