Theoretical aspects of emergence