Microemulsion structure from a three-component lattice model.