Determination of nonlinear stiffness with application to random vibration of geometrically nonlinear structures