Diamond quantum nanophotonics and optomechanics