Theoretical insights into the photophysical and nonlinear optical properties of diamondoids and phenoxazine dyes