Material from a patient with a diagnosis of peritonitis was delivered to the bacteriological laboratory. Microscopic examination revealed gram-positive and gram-negative microorganisms. What morphological structure of a bacterial cell determines Gram staining?