The role of thermal contribution in the design of AA2024 friction stir welded butt and lap joints: mechanical properties and energy demand