Enhanced electrochemical and photocatalytic activity of g-C3N4-PANI-PPy nanohybrids