Analysis of the self-piercing riveting process