Transmittance of thin metal films near the percolation threshold