The vacuum and gas inlet systems for the RFX fusion experiment