Advanced topics in nanophotonic resonators