The role of thin functional layers in solid oxide fuel cells