In situ growth of layered double hydroxide films under dynamic processes: Influence of metal cations