Design and operational conditions of small electrochemical cell for optical switching employing hydrogenation of Pd/Y structure