Scientists have devised a way of writing and storing messages by creating patterns of air bubbles in sheets of ice.