Zeros and amoebas of partition functions