full derivation of electromagnetic stress-energy tensor