Analysis of Residential Load Data and its Applications for Smart Grids