Coating of metals by the sol-gel dip-coating method