Particle-level pileup subtraction for jets and jet shapes