Characterization of batteries using ultrasound: applications for battery management and structural determination