A generalized limit equilibrium method for the solution of active earth pressure on a retaining wall