Phase transitions of solid paraffins and the flexibility of hydrocarbon chains