Synthesis of black cobalt and tin oxide films by the sol–gel process: surface and optical properties