Astronomical observations with a network of detectors of gravitational waves – I. Mathematical framework and solution of the five detector problem | Synapse