Limit analysis for a general class of yield conditions