Unconditional preparation of nonclassical states via linear-and-quadratic optomechanics