Structure induces computational function in networks with diverse types of spiking neurons