On the identification of substructure in phase space using orbital frequencies