Detection of gravitational waves using a network of detectors