Swedish court sentences ex-Iranian official to life for torture, executions