Microeconomic Modelling and Policy Analysis: Studies in Residential Energy Demand