General symmetry selection rules for the photoionization of polyatomic molecules