Unveiling the Structure of Active Galactic Nuclei with Hard X-Ray Spectroscopy