State of Health Estimation of Batteries Using a Time-Informed Dynamic Sequence-Inverted Transformer