Battery electromotive force and internal resistance