Effects of chain flexibility on the properties of DNA hydrogels.