The measurement of household cost functions