On semiconjugate rational functions