A new approach to optimal control of conductance-based spiking neurons