Quasi-exact solvability and intertwining relations