Effect of confinement and strain on the specific heat and latent heat over the Nematic - Isotropic phase transition of 8CB liquid crystal