An analytical approach to the problem of inverse optimization with additive objective functions: an application to human prehension