Multiscale modeling of lamellar mesophases.