Influence of epitaxial strain on elastocaloric effect in ferroelectric thin films