Corrected the return value of functions rad2deg and deg2rad in euler_angles