A man has been sentenced to 18 years in prison for rape and other sexual offences