Equivalence of matter-type modified gravity theories to general relativity with nonminimal matter interaction