What is the primary function of the eardrum in the human ear?