Permissions and Obligations in Hierarchical Normative Systems