Elastocaloric effect of shape memory polymers in elastic response regime