Energy decay and asymptotic behavior of solutions to the wave equations with linear dissipation