High quality factor nanophotonic resonators in bulk rare-earth doped crystals.