Automorphisms and derivations of incidence algebras