Police: Ex-substitute teacher bought gifts for sex acts with teen