The influence of dissolved gas on dynamics of a cavitation bubble in an elastic micro-confinement