The electronic state of thin films of yttrium, yttrium hydrides and yttrium oxide