A variational inequality approach to free surface seepage in an inhomogeneous dam