Swelling Induced Buckling of Photopatterned Hydrogel Beams