Laser-rate-equation description of optomechanical oscillators.