Find the value of the constant \(k\) for which \(k \sin 2 x\) is a particular integral of the differential equation
$$\frac { \mathrm { d } ^ { 2 } y } { \mathrm {~d} x ^ { 2 } } + y = \sin 2 x$$
Hence find the general solution of this differential equation.