Stat normalization helper: Normalize a stat into a 0–1 range with configurable lower and upper bounds.