Technology of diamond anvil high-pressure cells: I. Principles, design and construction