Implementation of the time-weighted residual method in the solution of forced vibration problems in members with variable section