Distance determination for RAVE stars using stellar models