Design of heterojunction with components in different dimensions for electrocatalysis applications