G-factors and diamagnetic coefficients of electrons, holes, and excitons in InAs/InP quantum dots