Mechanism of the transition between lamellar and gyroid phases formed by a diblock copolymer in aqueous solution.