Local-gravity test of unified models of inflation and dark energy in f(R) gravity