Analysis of lift and drag on a surface piercing foil