Study of the biodegradation of a polymer derived from castor oil by scanning electron microscopy, thermogravimetry and infrared spectroscopy