Field-temperature phase diagrams of freestanding and substrate-constrained epitaxial Ni-Mn-Ga-Co films for magnetocaloric applications