New technology to study beach erosion