End point detection in ion beam milling of YBa2Cu3O7 thin films