The double layer structure at the metal-solid electrolyte interface