Photochromism in yttrium hydride