Gravitational Wave Polarizations in $f(R)$ Gravity and Scalar-Tensor Theory