Transition to lamellar-catenoid structure in block-copolymer melts