A police officer has been jailed for 18 months for sexual assaults on two female colleagues.