Micro-Macroscopic Coupled Modeling of Batteries and Fuel Cells Part 1 . Model Development