On the X-rank with respect to linear projections of projective varieties