Restricted Ornstein-Uhlenbeck process and applications in neuronal models with periodic input signals