Smart meter based profiling for load forecasting and demand side management in smart grids