Measurement of liquid surface tension by fitting the lying droplet profile