Gravar-mail: Designing optimal stimuli to control neuronal spike timing