A goal function approach to remodeling of arteries uncovers mechanisms for growth instability