Spatially resolved optical characterization of photonic crystal slabs using direct evaluation of photonic modes