Men sentenced to between 16 and 22 years behind bars; they also scrawled pro-Islamic State messages on Melbourne shrine