Nonlinear dynamics of jointed structures: a multiscale approach to predict fretting wear and its effects on the dynamic response