Bott periodicity for the topological classification of gapped states of matter with reflection symmetry