Magnetocaloric Effect In Thin Films And Heterostructures