AC losses of YBa2Cu3O7−x high temperature superconductors