A shapeshifting material based on inorganic matter