Nitrogen vacancy centers in diamond: physics and applications in quantum technology