Nonlinear dynamics of a barometer: effect of compressibility of air above mercury