Height functions for applying contact angles to 2D VOF simulations