Hawking radiation via gravitational anomalies in nonspherical topologies