Photoelectrochemical measurements of polyaniline growth in a layered material