Measurement of pump induced refractive index change in erbium doped fibre amplifier