Tuning the charge transfer route by p–n junction catalysts embedded with CdS nanorods for simultaneous efficient hydrogen and oxygen evolution