Refinement Types for Logical Frameworks