Experimental controlled-NOT gate simulation with thermal light