Transmembrane fragment structures of amyloid precursor protein depend on membrane surface curvature.