Molecular conformation and packing in collagen fibrils