A former Sinn Féin press officer has been sentenced to 18 months in prison with half to be served in custody for a series of child sex offences involving police decoys.