Structure of the periplasmic chaperone Skp suggests functional similarity with cytosolic chaperones despite differing architecture