Method for measuring the Brillouin shift distribution along optical fiber based on the optical demodulation of the signals, and relevant apparatus