Effect of wear on the dynamics of structures with friction contacts