A kinetic study of in situ polyaniline–gold composite film formation