Measuring In-Context Computation Complexity via Hidden State Prediction