A logical characterization of the sets of hypergraphs defined by Hyperedge Replacement grammars