Structural and functional characterization of an intramembrane peptidase and a non-peptidase homolog