The hard hexagon partition function for complex fugacity