Nuclear structure effects in the feeding of yrast states of Gd, Dy and Er nuclei