An ESR Study of YBa2Cu3O7-x and Y2BaCuO5 with Oxygen Deficiencies