A complete classification of the expressiveness of interval logics of Allen’s relations: the general and the dense cases