The application of particle image velocimetry to the study of water waves