Design of the battery management system of LiFePO4 batteries for electric off-road vehicles