Stability analysis and synthesis for scalar linear systems with a quantized feedback