Identification of avoidance genes through neural pathway-specific forward optogenetics