Measurement of printer parameters for model-based halftoning