Probing atomic, electronic, and optical structures of nanoparticle photocatalysts using fast electrons