Comparison of the EPR of the antiferromagnets Y2BaCuO5 and Gd2BaCuO5 and the high Tc superconductors YBa2Cu3O7 and GdBa2Cu3O7