A former Brisbane police officer, who was found guilty of grooming a 15-year-old girl, has been sentenced to two years jail.