Structure and magnetic properties of the pyrochlore iridate Y2Ir2O7