On the geometric Brownian motion with alternating trend