Contractive distributed MPC for consensus in networks of single and double integrators