State-dependent diffusion: Thermodynamic consistency and its path integral formulation | Synapse