Optical reading of multistate nonvolatile oxide memories based on the switchable ferroelectric photovoltaic effect