Evolution of percolation properties in nanocomposite films during particle clustering