Ex-Hobart teacher jailed for student abuse