The nuclear photoeffect in holmium and erbium