Applications of NILM Techniques to Energy Management and Assisted Living