In situ observation of lithium deposition processes in solid polymer and gel electrolytes