Approximate KMS states for scalar and spinor fields in Friedmann-Robertson-Walker spacetimes