The cosmological redshift inside the transformation-optical analogue of the Robertson-Walker metric