Originally thought to be ash, the ancient powdery substance helped researchers identify the building’s purpose