Requirements for photochromism in double-layer metal oxide films