A general formulation of an analytical model for the elastic-plastic behaviour of a spot weld finite element