Thermodynamics of fluids in random microporous materials from scaled particle theory