Zapping sand to create rock could help curb coastal erosion