Search for gravitational-wave bursts associated with gamma-ray bursts using data from LIGO science run 5 and Virgo science run 1