Detecting sources of millihertz gravitational radiation using optical photons from the Zwicky Transient Facility