Symmetries and selection rules in the measurement of the phonon spectrum of graphene and related materials