Measurement of surface tension and contact angle using entropic edge detection