Preparation of Co–Al and Ni–Al layered double hydroxide thin films by a sol–gel process with hot water treatment