Rigorous electromagnetic calculations in radiometry