Influence of sol–gel application conditions on metallic substrate for optical applications