By inserting tiny imperfections into the stones, scientists open up possibilities in computing, encryption and sensors