Structural and thermodynamic aspects of the cylinder-to-sphere transition in amphiphilic diblock copolymer micelles