ac losses in a YBa2Cu3O7−x coil