Quality assurance of solid oxide fuel cell (SOFC) and electrolyser (SOEC) stacks