Ab initio calculation of the Hubbard U and Hund exchange J in local moment magnets: The case of Mn-based full Heusler compounds