Structure-based mechanism of cysteine-switch latency and of catalysis by pappalysin-family metallopeptidases