Influence of Gd3+ on molecular organization and electrochemical properties of Si-based organic/inorganic sol-gel layers