Biomimetic syntheses of pure or doped metal hydroxide nitrate thin films by a dual-template approach