A predatory police officer has been locked up for raping a woman and a teenage girl in sex assaults in Shetland.