Effects of encoding variability and spacing on frequency discrimination