Performance of a cavity-method-based algorithm for the prize-collecting Steiner tree problem on graphs