Optomechanically-generated photon–phonon single pairs with both discrete- and continuous-variable entanglements