Are f(R) dark energy models cosmologically viable?