Interactions between calmodulin and neurogranin govern the dynamics of CaMKII as a leaky integrator