State of health and charge measurements in lithium-ion batteries using mechanical stress