A dynamic Lagrangian frequency–time method for the vibration of dry-friction-damped systems