Hierarchical corner-based design rule checking