The World Function in Robertson-Walker Spacetime