Formation of the solid electrolyte layer