The secondary star and distance of the polar V1309 Orionis