Ionics at nanoscale : application to fuel cells