Astronaut completes triathlon in space