Pore-forming confined space for the innovative electrochemical methods