What is the primary function of myoglobin in muscle cells?