An extension of the NpT plus test particle method for the determination of the vapour-liquid equilibria of pure fluids