Heating during infrared neural stimulation