Hamas ready to compromise if Israel swaps prisoners