Switching the magnetostructural coupling in MnCoGe-based magnetocaloric materials