Magnetometry and electron paramagnetic resonance studies of phosphine- and thiol-capped gold nanoparticles