Hello Mélusine and roegner,
Thank you very much for your suggestions. I went to a migration office and they said, Yes, I can go for a year. Although my permit will expire, they will give me re-entry visa for coming back and then I can get a new permit. It will break the continuity of my permits, however, it is preferable to me compared to other expensive option of coming back after 6 months to Switzerland and keeping an apartment here. It also works for me as I am not looking for permanent residence here and planning to go back after my PhD.