Crystalline YAlO3 as a novel window for photodetectors