Interactions driving the collapse of islet amyloid polypeptide: implications for amyloid aggregation