Elastocaloric Effect Associated with Different Types of Martensitic Transformations: Typical First‐Order and Weak First‐Order Ones