Added dissipative media functionality and fixed indexing issue caused by incorrect data type
added example for dissipative cube directivity