Pd doped carbon nitride (Pd-g-C3N4): an efficient photocatalyst for hydrogenation via an Al-H2O system and an electrocatalyst towards overall water splitting