On the feedback linearization of robots with elastic joints