A finite-state machine-based control design for thermal and state-of-charge balancing of lithium iron phosphate battery using flyback converters