Mechanisms of outer membrane protein folding: effects of the lipid environment and periplasmic chaperones