A visible light photoelectrochemical sandwich aptasensor for adenosine triphosphate based on MgIn2S4-TiO2 nanoarray heterojunction.