An analysis of RelaxedIK: an optimization-based framework for generating accurate and feasible robot arm motions