The effective action of double field theory