Invariant identification of naked singularities in spherically symmetric spacetimes