Maximal Safety Regions for 2D Robotic Arms as Low Degree Sum-Of-Squares Programming