Green and low-cost synthesis of PANI-TiO2 nanocomposite mesoporous films for photoelectrochemical water splitting