The use of direct inverse maps to solve material identification problems: pitfalls and solutions