Higher order modes computation in RF cavities