A General Expenditure System for Estimation of Consumer Demand Functions