Engineers develop shape-changing metamaterial