Modelling and optimisation of structural joints in automotive applications