Effect of oxygen stoichiometry on the critical temperature and thermal expansion of two-layer bismuth strontium calcium copper oxide superconductors