Investigating the genetic basis for bacterial toxin production using functional genomics