Watching mesoporous metal films grow during templated electrodeposition with in situ SAXS.