Application of Dirichlet's Principle in A New Panel Method for Surface and Tip Flows of Lifting Bodies