Nuclear and magnetic medium range order in amorphous Tb65 Cu35 and Er69.5 Cu30.5 alloys