Diagnostics and Characterization of Photonic Circuits by Wide-Field Spatiotemporal Imaging