Anisotropies of the g-factor tensor and diamagnetic coefficient in crystal-phase quantum dots in InP nanowires