Transitions to periodic structures in block copolymer melts