Structure formation in urea-formaldehyde resin synthesis