On the 4D effective theory in warped compactifications with fluxes and branes