Former middle school principal convicted of sexual battery