Solving applied general equilibrium models represented as a mixture of linearized and levels equations