Advanced computational electromagnetics for nanophotonics and biosensing MPhil/PhD