Topological Mechanics of Origami and Kirigami