Text this: The high energy X-ray probe (HEX-P): probing the physics of the X-ray corona in active galactic nuclei