A garda who falsely imprisoned and sexually assaulted a woman in a Co Wicklow garda station has been jailed for six years.