A method to measure the Brillouin frequency shift of the medium through Brillouin amplification ratio