A Quantifiable Information-Processing Hierarchy Provides a Necessary Condition for Detecting Agency