Demonstration of an integrated nanophotonic chip-scale alkali vapor magnetometer using inverse design