The stability of lamellar structures