Method for selecting the polarization of the laser beam oscillating inside a laser cavity