Ab Initio Investigations of Electromagnetic Interaction of Quantum Systems and Plasmonic Materials