Conditions for conductance quantization in realistic models of atomic-scale metallic contacts.