Limit analysis of 2-D and 3-D structures based on an ellipsoid yield criterion