What is the primary function of a materials management information system (MMIS) in a healthcare facility?