Mie and Finite-Element Simulations of the Optical and Plasmonic Properties of Micro- and Nanostructures