Characterization of quasi-one-dimensional S=1/2 Heisenberg antiferromagnets Sr2Cu(PO4)2 and Ba2Cu(PO4)2 with magnetic susceptibility, specific heat, and thermal analysis