Relationship between crystal structure and magnetic properties of (RE)2V2O7; RE=Lu, Yb, Tm