First-principles structures for the close-packed and the 7/2 motif of collagen