Probing the innermost regions of AGN jets and their magnetic fields with RadioAstron