Topology of nonsymmorphic crystalline insulators and superconductors