An inverse method for determining the spatially resolved properties of viscoelastic–viscoplastic three-dimensional printed materials