Salinity gradient induced energy generation inside a pH-sensitive charged nanochannel: impact of ion partitioning effect