The relativistic implicit Particle-in-Cell method