f(R) gravity constrained by PPNparameters and stochastic background of gravitational waves