Micro-macroscopic modeling of a lithium-ion battery by considering grain boundaries of active materials