Entanglement swapping with local certification: Application to remote micromechanical resonators