A Study of Electrochemically Induced Lattice Distortions in Layered Perovskites