Fundamental variability limits of filament-based RRAM