What is matter? The fundamental ontology of atomism and structural realism