An embedding characterization of almost realcompact spaces