The 2017 Nobel prize in physics has been awarded to three scientists for the detection of gravitational waves.