Stochastic analysis of nonlinear dynamics and feedback control for gene regulatory networks with applications to synthetic biology