Final results on neutrino oscillation parameters from the OPERA experiment in the CNGS beam