The magnetic properties of R in Pb2Sr2(R/Ca)Cu3O8 (R = HO and Er)