Rigorous simulation of nonlinear optomechanical coupling in micro- and nano-structured resonant cavities