Mode decomposition of three-dimensional mixed-mode cracks via two-state integrals