Solving central charge constraints in extended super-Yang-Mills theories