Identification of radio-frequency and microwave residual-loss mechanisms in YBa2Cu3O7- delta films in a magnetic field