Least‐squares based coulomb counting method and its application for state‐of‐charge (SOC) estimation in electric vehicles