Polaritonic chemistry and materials Electronic structure of quantum defects Method and software development