Officer sentenced for raping woman