On stellar activity cycles