Optomechanical scheme for the detection of weak impulsive forces