Comprehensive vector analysis for electro-optical, opto-electronic, and optical devices.