Optomechanical test of the Schrödinger-Newton equation