Jelle Vanendert timed his attack perfectly on the final climb to take a comfortable solo victory - his first win in one of the Grand Tours.