An EXAFS study of the three cation environments in Ba2YCu3O7