Effects of pH and ionic strength on the structure of collagen fibrils