Global stability of an SIR epidemic model with information dependent vaccination