New memory chip controlled by light and magnets could one day make AI computing less power-hungry