added ability to write a ModEM file from ws3dinv in loge format