Frequency Domain Characterization of Batteries for the Design of Energy Storage Subsystems