A three-dimensional meso-macroscopic model for Li-Ion intercalation batteries