Fundamentals of Utility Analytics: Techniques, Applications and Case Studies