From micro to macro units: a mathematical framework for identifying the causal grain of a system from its intrinsic perspective | Synapse