Calculation of surface tension via area sampling.