A "dangerous" rapist who attacked a 15-year-old girl and a sleeping woman has been jailed for eight years.