The residential demand for electricity: a variant parameters approach