The influence of internal strain on the charge distribution and superconducting transition temperature in Ba2YCu3Ox