Improving energy efficiency in friction assisted joining of metals and polymers