Gravar-mail: Modelling the interaction of structural and synaptic plasticity