Smoothening in thin-film deposition on rough substrates