Structural transitions and bilayer formation of CTAB aggregates