An energy conservative method to predict the erosive aggressiveness of collapsing cavitating structures and cavitating flows from numerical simulations