Effects of strain on electronic and magnetic properties of Co/WS2 nanolayer: A density functional and Monte Carlo study