Optimization of the Contact Geometry for Accurate Quantized Hall Resistance Measurements