Toronto police officer convicted of assaulting Dafonte Miller has resigned