Jahn-Teller type structural transition in KDy(WO4)2