Text this: Energy optimization induces predictive-coding properties in a multi-compartment spiking neural network model.