Tailoring the electron and hole Land\'e factors in lead halide perovskite nanocrystals by quantum confinement and halide exchange