Projector-based renormalization method (PRM) and its application to many-particle systems