An Automated Framework for Generating Variable-Accuracy Battery Models from Datasheet Information