Fundamentals of Energy Storage Systems and Battery Technologies