En svensk man som stridit för Ukraina mot Ryssland har dömts i rysk domstol för bland annat terrorism, skriver ryska medier.