AC losses and critical current density of superconducting GdBa2Cu3O7−x